package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.StrategyComment;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.StrategyCommentCheckGoodQueryObject;
import com.github.pagehelper.PageInfo;

public interface IStrategyCommentService {
    /**
     * 分页
     * @param qo
     * @return
     */
    PageInfo query(QueryObject qo);

    /**
     * 新增和编辑
     * @param
     * @param tags
     */
    void saveOrUpdate(StrategyComment strategyComment, String[] tags);

    StrategyComment selectCommentById(Long id);

    void checkThumbup(Long commentId, Long userId);
    //点赞
    void insertThumbup(Long commentId, Long currentUserId);
    //取消点赞
    void delete1Thumbup(Long commentId, Long currentUserId);


    PageInfo selectCheckGoodInformation(StrategyCommentCheckGoodQueryObject qo);
}
